Page({
  data: {
    nvabarData: {
      title: '上课记录详情',
      transmit: ''
    },
    detail:{},
  },

  onLoad: function (options) {
    // 获取传递的记录ID
    const recordId = options.id;

    // 根据ID加载签到详情
    this.loadSignDetail(recordId);

  },

  // 加载签到详情
  loadSignDetail: function (recordId) {
    // 模拟数据 - 实际开发中应根据ID从服务器获取
    const detail = {
      deductedHours: 1,
      equivalentTime: "2小时",
      attendanceStatus: 'attended',
      attendanceText: '正常签到',
      courseName: '数学进阶课程',
      classDate: '2023-11-15',
      classTime: '14:00-15:30',
      courseDuration: 90,
      teacherName: '李老师',
      studentName: '张小萌',
      schoolName: '阳光实验小学',
      signInTime: '2023-11-15 13:55',
      signInMethod: '小程序扫码',
      signOutTime: '2023-11-15 15:32',
      notes: '本节课表现积极，按时完成课堂练习。'
    };

    this.setData({
      detail
    });
  }
});